﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartCity.ProcessEngine.Domain.Entities
{
    /// <summary>
    /// 流程实例审批记录---跟踪实例的每一个环节  某一个节点的实例
    /// </summary>
    public class InstanceRecardModel:BaseEntity
    {
        /// <summary>
        /// 所跟踪的,需要审批的流程实例的Id
        /// </summary>
        public long IntanceId {  get; set; }
        /// <summary>
        /// 当前实例到了哪个环节--节点node  (节点配置Id)
        /// </summary>
        public long NodeId {  get; set; }
        /// <summary>
        /// 节点名称
        /// </summary>
        public string NodeName {  get; set; }

        /// <summary>
        /// 操作者( 申请人、 审批人)
        /// </summary>
        public string OperatorName {  get; set; }
        /// <summary>
        /// 审批意见
        /// </summary>
        public string OperatorOpinion { get; set; }
        /// <summary>
        /// 审批状态 : 通过 不通过
        /// </summary>
        public ApproveStatus ApproveStatus { get; set; }

        public DateTime CreatedTime { get; set; } = DateTime.Now;
        

    }
}
